package com.oa.gform.client.ui;

import com.google.gwt.user.client.Command;
import com.oa.gform.client.ui.datamodel.GDataSourceParam;
import com.oa.gform.client.ui.datasource.GItemsDataSource;
/***
 * Interfaccia utilizzare dalle field che hanno degli items
 * @author Marco
 *
 */
public interface HasGItemsDataSource<T> {
	void setGItemsDatasource(GItemsDataSource<T,?,?> datasource);
	GItemsDataSource<T,?,?> getGItemsDatasource();
	abstract void loadData(GDataSourceParam param);
	abstract void loadData();
	abstract void addLoadDataListener(Command callback);
	abstract void removeLoadDataListener(Command callback);
	//abstract void getSelectedValue(Command callback);
	
}
